Знаю снова туплю.
@client.event
async def on_guild_join(guild):
cur.execute(f"INSERT INTO prefix(guild, prefix) VALUES({guild.id}, '*')")
con.commit()
for member in client.get_all_members():
user = str(member.id)
guildid = str(member.guild.id)
ult2 = f"{user}{guildid}"
cur.execute(f"SELECT guild FROM users WHERE guild = '{ult2}'")
if cur.fetchone() == None:
cur.execute(f"INSERT INTO users(guild) VALUES({ult2})")
else:
print("No")
con.commit()
print("Yes")
Принты просто для откладки
Скажите что тут не так?