#I keep getting this error for some reason.

1 messages · Page 1 of 1 (latest)

manic rain
#

what are you plugging into the function?

#

how are you calling the function?

#

what are the arguments

#

get_guild

#

please show code.

#

not just names of variables

#

Ok, but how are you calling the function

#

what arguments are you putting in?

#

ctx.message would fail if the command is a slash command

#

because slash commands have no message attached to them until response

#

and ctx.message is just the response message

#

I'm assuming that's not what you are looking for

#

I don't know what you want to do

#

Ah ic. So you just want to get the guild?

#

you can get the guild with ctx.guild

#

it would be None if in DMs

#

I don't understand what get_guild does

#

ctx.guild already gets the guild

#

there is no need for a utility function, unless I am missing something.

#

I don't see why you need a utility function for doing this.

#

well, just set current_guild = ctx.guild

#

and see if anything breaks

#

traceback?

#

just set it to ctx.author.voice

#

well, ctx.author in text-based commands is just a shorthand for ctx.message.author

#

but bridge commands include slash commands which uses it as a shorthand for ctx.interaction.author

#

alr

#

gl

#

If that solved your problems...

#

.tag solved

wet fernBOT
#

Done with your help thread?

Please close your own help thread by using </close:1009144375709814897> with @kind stone.

kind stoneBOT
#

This thread was archived by the user that opened it.