Utils

Utility functions that don’t have a place anywhere else. If it doesn’t sound like it fits anywhere else, and it’s small, it probably goes here.

embed_eq(embed1: Optional[discord.Embed], embed2: Optional[discord.Embed])bool
activity_eq(act1: Optional[discord.Activity], act2: Optional[discord.Activity])bool
embed_proxy_eq(embed_proxy1, embed_proxy2)
class PeekableQueue(maxsize=0, *, loop=None)

An extension of an asyncio queue with a peek message, so other code doesn’t need to rely on unstable internal artifacts

peek()

Peek the current last value in the queue, or raise an exception if there are no values

Returns

Last value in the queue, assuming there are any