izy521 / discord.io

A small, single-file library for creating DiscordApp clients from Node.js or the browser
https://discord.gg/0MvHMfHcTKVVmIGP
MIT License
535 stars 155 forks source link

serverid #299

Closed Shrinkvine closed 5 years ago

Shrinkvine commented 5 years ago

Hi so my bot is in multiple servers, but it cant use some commands because it needs the server ID of each and i only can have one in at a time. How can I make it so I can make it the serverid in which the command was said??

Peacerekam commented 5 years ago

event.d.guild_id or bot.channels[channelID].guild_id

Shrinkvine commented 5 years ago

so i can set var server = event.d.guild_id and have serverID: server and it would work? Thanks

cloudrac3r commented 5 years ago

Correct.

Feel free to close this issue.