mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-30 15:04:18 +00:00
11 lines
324 B
Python
11 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.")
|