#Hello, I have an error - NameError: name 'guild' is not defined

1 messages · Page 1 of 1 (latest)

brazen crest
#

There is a guild.create_text_channel, change it to inter.guild.create_text_channel

sharp vessel
#

thanks, I'll check it out)

brazen crest
#

also the other guild.something, swap inter. to be in front of me

sharp vessel
#

(

sharp vessel
#

how to do it? I'm just inexperienced

brazen crest
#

inter.guild.whatever action

#

Inter refers to the interaction (command in this case)
.guild means getting the guild of the interaction

sharp vessel
#

await inter.guild.whatever.create_text_channel(category=956191583701704774

#

right?)

sharp vessel
white tinsel
#

show the code

sharp vessel
#

I'm having trouble with the overwrites value

sharp vessel
sharp vessel
white tinsel
#

define the guild

#

c'mon dude

sharp vessel
#

I am very stupid (what exactly should I do

white tinsel
#

learn python

sharp vessel
#

(

white tinsel
#

guild = something

#

or guild = inter.guild

sharp vessel
#

I'm tired, now like an amoeba, for the moment I give up(

#

ok, thanks everyone 🙂

pallid wharf