generated from yanyongyu/python-poetry-template
-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event has no context! #23
Labels
question
Further information is requested
Comments
试试 |
私聊能用了, 其他channel还是会报错 |
能发 log 吗 在 我收到的包
{
"version": 1,
"type": 2,
"token": "xxx",
"member": {
"user": {
"username": "autuamn_end",
"public_flags": 0,
"id": "474564749217234954",
"global_name": "Autuamn End",
"discriminator": "0",
"clan": None,
"avatar_decoration_data": None,
"avatar": "7a8c1eacb63acfd711543f86244e5572",
},
"unusual_dm_activity_until": None,
"roles": [
"1180878026678993048",
"1181071825208360960",
"1181071750851727442",
"1180870446959296533",
],
"premium_since": None,
"permissions": "1125899906842623",
"pending": False,
"nick": None,
"mute": False,
"joined_at": "2023-11-07T03:44:23.842000+00:00",
"flags": 2,
"deaf": False,
"communication_disabled_until": None,
"avatar": None,
},
"locale": "zh-CN",
"id": "1230748389587681290",
"guild_locale": "zh-CN",
"guild_id": "1171294052839333910",
"guild": {
"locale": "zh-CN",
"id": "1171294052839333910",
"features": [
"ENABLED_MODERATION_EXPERIENCE_FOR_NON_COMMUNITY",
"COMMUNITY",
"GUILD_ONBOARDING",
"GUILD_ONBOARDING_HAS_PROMPTS",
"CHANNEL_ICON_EMOJIS_GENERATED",
"NEWS",
"GUILD_ONBOARDING_EVER_ENABLED",
],
},
"entitlements": [],
"entitlement_sku_ids": [],
"data": {
"type": 1,
"options": [{"value": "123", "type": 3, "name": "字符串"}],
"name": "echo",
"id": "1208353258297364520",
},
"channel_id": "1208348399263285308",
"channel": {
"type": 0,
"topic": None,
"theme_color": None,
"rate_limit_per_user": 0,
"position": 21,
"permissions": "1125899906842623",
"parent_id": "1180921939452244059",
"nsfw": False,
"name": "test",
"last_message_id": "1230743594088796232",
"id": "1208348399263285308",
"icon_emoji": {"name": "🌐", "id": None},
"guild_id": "1171294052839333910",
"flags": 0,
},
"application_id": "1208326638673330196",
"app_permissions": "1125899906842623",
} |
频道里使用 on_slash_command
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
按插件实例里的 on_slash_command 情况下
event.get_user_id()
会报错The text was updated successfully, but these errors were encountered: