mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
10 lines
324 B
Python
10 lines
324 B
Python
import royalnet.commands as rc
|
|
|
|
|
|
def get_interface_data(data: rc.CommandData):
|
|
if data._interface.name == "telegram":
|
|
return data.message.chat.id
|
|
elif data._interface.name == "discord":
|
|
return data.message.channel.id
|
|
else:
|
|
raise rc.UnsupportedError("This interface isn't supported yet.")
|