#how import IntegrationType
1 messages · Page 1 of 1 (latest)
Hey! Once your issue is solved, press the button below to close this thread!
from interactions import integration_types
i also try this one but still not work
show your full code
import interactions
from interactions import Client, slash_command, SlashContext, OptionType, slash_option, listen
from interactions import integration_type
from interactions.api.events import GuildJoin, MemberAdd
with open("token.txt", "r") as file:
TOKEN = file.read().strip()
bot_token = "my_token"
bot = interactions.Client(token=bot_token, intents=interactions.Intents.ALL | interactions.Intents.GUILD_MEMBERS)
async def on_startup():
print("Bot is ready!")
@listen(GuildJoin)
async def on_guild_join(event: GuildJoin):
print(f"Guild joined : {event.guild.name}")
@slash_command(name="ping",description="test ping")
@integration_type(guild=True, user=True)
async def ping(msg: SlashContext):
await msg.send("hi")
bot.start(TOKEN)
what do you plan to do that you can't?
IntegrationType function is that the slash command can be used for user install right?
please tell me how to make my command can be used everywhere. ofc we need to user install the bot
ah right i never update my interactions module
its already fixed
