#Guild and stuff - Mazine
1 messages · Page 1 of 1 (latest)
ok so message.guild will work for whatever server you run it in.
Or are you saying from your server, you want to know the avatar of any other server the bot is in?
no i dont want to know the avatar of any other server
like if i did
.savatar
it shows me the server avatar
You're being confusing: "like not only for my server"
So you want it for a server you pick?
As in, you go to a server, run the command, it gives you the avatar
or from your server, you run the command, and it gives you the avatar for a different server?
no
ok.
So message.guild is the guild, the message was run in.
So use that.
so const guild = message.guild; ?
const { guild } = message;
Or just do message.guild when you need it.
Either works
alright thanks
Ping me here if more questions.
yeaah and size
Size is not an option, see the link above.
@trail dirge can i have invite tracker docs
Not sure what you mean by Invite Tracker.
See the Docs for Guild, and you probs want invites for that Guild?
i want to write command that show me how many invites i have on the guild
Documentation suggestion for @wanton shard:
<:_:874569296821501952> Guild (extends AnonymousGuild)
Represents a guild (or a server) on Discord. (more...)
See the Guild docs, you'll find it
.invites right
Try it and see
Where'd you get guild.user from
Did you look at the Docs for what Invites is.
It's a manager to get the invites for the guild.
which is then used to get EACH invite: https://discord.js.org/#/docs/main/stable/class/Invite
Guild
- Invites
- Invite
@trail dirge how can i make command work with id too
like
.user @wanton shard
i want it
.user 582682150168690728
can i?
I mean those are just clever logic
There's no such thing as a "text command"
You're just running conditional code based on a prefix
but yes, you can do anything you like in that way
Slash Commands are better however, but harder to setup
yes its hardd
im just starter
i main v12
im new in v13