#Guild and stuff - Mazine

1 messages · Page 1 of 1 (latest)

trail dirge
#

@wanton shard

#

What is this command supposed to do?

wanton shard
#

to show me server avatar

#

like not only for my server

#

i want everywhere

trail dirge
#

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?

wanton shard
#

no i dont want to know the avatar of any other server

#

like if i did

#

.savatar

#

it shows me the server avatar

trail dirge
#

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

trail dirge
#

or from your server, you run the command, and it gives you the avatar for a different server?

trail dirge
#

ok.
So message.guild is the guild, the message was run in.
So use that.

wanton shard
#

so const guild = message.guild; ?

trail dirge
#

const { guild } = message;
Or just do message.guild when you need it.
Either works

wanton shard
#

alright thanks

trail dirge
#

Ping me here if more questions.

wanton shard
#

alrightt

#

@trail dirge options for iconURL is like avatarURL or different

trail dirge
#

Looks like you just want { dynamic: false } or true

wanton shard
trail dirge
#

Size is not an option, see the link above.

wanton shard
#

@trail dirge can i have invite tracker docs

trail dirge
#

Not sure what you mean by Invite Tracker.
See the Docs for Guild, and you probs want invites for that Guild?

wanton shard
fiery muskBOT
#

Documentation suggestion for @wanton shard:
<:_:874569296821501952> Guild (extends AnonymousGuild)
Represents a guild (or a server) on Discord. (more...)

trail dirge
#

See the Guild docs, you'll find it

wanton shard
trail dirge
#

Try it and see

wanton shard
#

@trail dirge its not working

trail dirge
#

Where'd you get guild.user from

wanton shard
#

i meant

#

user.guild

#

i want user invites

trail dirge
#

Invites pertain to the Guild, not to a User.

#

So it's just Guild.invites

wanton shard
wanton shard
#

object object

trail dirge
#

Did you look at the Docs for what Invites is.

#

It's a manager to get the invites for the guild.

#
Guild
 - Invites
   - Invite
wanton shard
#

@trail dirge how can i make command work with id too

#

like

#

.user @wanton shard

#

i want it

#

.user 582682150168690728

#

can i?

trail dirge
#

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

wanton shard
#

im just starter

#

i main v12

#

im new in v13

trail dirge
#

v12 or v13 the concepts are the same

#

What you're struggling with is the discovery, and the logic.