if not q.empty():
msg = q.get_nowait()
try:
msg = q.get_nowait()
except Empty: #очередь пуста, спим дальше.
await asyncio.sleep(1.0)
else:
await sendmsg(msg)
q.task_done()
.channel
The channel that the message was sent in
Type: TextChannel or DMChannel or NewsChannel
(message.channel instanceof TextChannel) && (message.channel.name == 'wtf_channel')
member
The member who added the reaction. Only available if event_type is REACTION_ADD and the reaction is inside a guild.