getByName
使用简单的字符串名称来获取一个对应的 EventIntents 子类型的 intents 值, 字符串名称与这个类型的简单类型相关:类名的名称,以及对应的snack(下滑线)格式。 名称支持开头大写、小写的驼峰格式以及对应的全大写、小写的snack格式,但大小写仍然是敏感的。
名称 | 类型 |
---|---|
"AudioAction" , "audioAction" , "AUDIO_ACTION" , "audio_action" | AudioAction |
"AudioOrLiveChannelMember" , "audioOrLiveChannelMember" , "AUDIO_OR_LIVE_CHANNEL_MEMBER" , "audio_or_live_channel_member" | AudioOrLiveChannelMember |
"DirectMessage" , "directMessage" , "DIRECT_MESSAGE" , "direct_message" | DirectMessage |
"ForumsEvent" , "forumsEvent" , "FORUMS_EVENT" , "forums_event" | ForumsEvent |
"GroupAndC2CEvent" , "groupAndC2CEvent" , "GROUP_AND_C2C_EVENT" , "group_and_c2c_event" | GroupAndC2CEvent |
"GuildMembers" , "guildMembers" , "GUILD_MEMBERS" , "guild_members" | GuildMembers |
"GuildMessageReactions" , "guildMessageReactions" , "GUILD_MESSAGE_REACTIONS" , "guild_message_reactions" | GuildMessageReactions |
"GuildMessages" , "guildMessages" , "GUILD_MESSAGES" , "guild_messages" | GuildMessages |
"Guilds" , "guilds" , "GUILDS" | Guilds |
"Interaction" , "interaction" , "INTERACTION" | Interaction |
"MessageAudit" , "messageAudit" , "MESSAGE_AUDIT" , "message_audit" | MessageAudit |
"OpenForumsEvent" , "openForumsEvent" , "OPEN_FORUMS_EVENT" , "open_forums_event" | OpenForumsEvent |
"PublicGuildMessages" , "publicGuildMessages" , "PUBLIC_GUILD_MESSAGES" , "public_guild_messages" | PublicGuildMessages |