github.com/meowstercatel/discordgo@v0.0.0-20250615204139-29b43d676735/eventhandlers.go (about) 1 // Code generated by \"eventhandlers\"; DO NOT EDIT 2 // See events.go 3 4 package discordgo 5 6 // Following are all the event types. 7 // Event type values are used to match the events returned by Discord. 8 // EventTypes surrounded by __ are synthetic and are internal to DiscordGo. 9 const ( 10 applicationCommandPermissionsUpdateEventType = "APPLICATION_COMMAND_PERMISSIONS_UPDATE" 11 autoModerationActionExecutionEventType = "AUTO_MODERATION_ACTION_EXECUTION" 12 autoModerationRuleCreateEventType = "AUTO_MODERATION_RULE_CREATE" 13 autoModerationRuleDeleteEventType = "AUTO_MODERATION_RULE_DELETE" 14 autoModerationRuleUpdateEventType = "AUTO_MODERATION_RULE_UPDATE" 15 channelCreateEventType = "CHANNEL_CREATE" 16 channelDeleteEventType = "CHANNEL_DELETE" 17 channelPinsUpdateEventType = "CHANNEL_PINS_UPDATE" 18 channelUpdateEventType = "CHANNEL_UPDATE" 19 connectEventType = "__CONNECT__" 20 disconnectEventType = "__DISCONNECT__" 21 entitlementCreateEventType = "ENTITLEMENT_CREATE" 22 entitlementDeleteEventType = "ENTITLEMENT_DELETE" 23 entitlementUpdateEventType = "ENTITLEMENT_UPDATE" 24 eventEventType = "__EVENT__" 25 guildAuditLogEntryCreateEventType = "GUILD_AUDIT_LOG_ENTRY_CREATE" 26 guildBanAddEventType = "GUILD_BAN_ADD" 27 guildBanRemoveEventType = "GUILD_BAN_REMOVE" 28 guildCreateEventType = "GUILD_CREATE" 29 guildDeleteEventType = "GUILD_DELETE" 30 guildEmojisUpdateEventType = "GUILD_EMOJIS_UPDATE" 31 guildIntegrationsUpdateEventType = "GUILD_INTEGRATIONS_UPDATE" 32 guildMemberAddEventType = "GUILD_MEMBER_ADD" 33 guildMemberRemoveEventType = "GUILD_MEMBER_REMOVE" 34 guildMemberUpdateEventType = "GUILD_MEMBER_UPDATE" 35 guildMembersChunkEventType = "GUILD_MEMBERS_CHUNK" 36 guildRoleCreateEventType = "GUILD_ROLE_CREATE" 37 guildRoleDeleteEventType = "GUILD_ROLE_DELETE" 38 guildRoleUpdateEventType = "GUILD_ROLE_UPDATE" 39 guildScheduledEventCreateEventType = "GUILD_SCHEDULED_EVENT_CREATE" 40 guildScheduledEventDeleteEventType = "GUILD_SCHEDULED_EVENT_DELETE" 41 guildScheduledEventUpdateEventType = "GUILD_SCHEDULED_EVENT_UPDATE" 42 guildScheduledEventUserAddEventType = "GUILD_SCHEDULED_EVENT_USER_ADD" 43 guildScheduledEventUserRemoveEventType = "GUILD_SCHEDULED_EVENT_USER_REMOVE" 44 guildStickersUpdateEventType = "GUILD_STICKERS_UPDATE" 45 guildUpdateEventType = "GUILD_UPDATE" 46 integrationCreateEventType = "INTEGRATION_CREATE" 47 integrationDeleteEventType = "INTEGRATION_DELETE" 48 integrationUpdateEventType = "INTEGRATION_UPDATE" 49 interactionCreateEventType = "INTERACTION_CREATE" 50 inviteCreateEventType = "INVITE_CREATE" 51 inviteDeleteEventType = "INVITE_DELETE" 52 messageCreateEventType = "MESSAGE_CREATE" 53 messageDeleteEventType = "MESSAGE_DELETE" 54 messageDeleteBulkEventType = "MESSAGE_DELETE_BULK" 55 messagePollVoteAddEventType = "MESSAGE_POLL_VOTE_ADD" 56 messagePollVoteRemoveEventType = "MESSAGE_POLL_VOTE_REMOVE" 57 messageReactionAddEventType = "MESSAGE_REACTION_ADD" 58 messageReactionRemoveEventType = "MESSAGE_REACTION_REMOVE" 59 messageReactionRemoveAllEventType = "MESSAGE_REACTION_REMOVE_ALL" 60 messageUpdateEventType = "MESSAGE_UPDATE" 61 presenceUpdateEventType = "PRESENCE_UPDATE" 62 presencesReplaceEventType = "PRESENCES_REPLACE" 63 rateLimitEventType = "__RATE_LIMIT__" 64 readyEventType = "READY" 65 resumedEventType = "RESUMED" 66 stageInstanceEventCreateEventType = "STAGE_INSTANCE_EVENT_CREATE" 67 stageInstanceEventDeleteEventType = "STAGE_INSTANCE_EVENT_DELETE" 68 stageInstanceEventUpdateEventType = "STAGE_INSTANCE_EVENT_UPDATE" 69 subscriptionCreateEventType = "SUBSCRIPTION_CREATE" 70 subscriptionDeleteEventType = "SUBSCRIPTION_DELETE" 71 subscriptionUpdateEventType = "SUBSCRIPTION_UPDATE" 72 threadCreateEventType = "THREAD_CREATE" 73 threadDeleteEventType = "THREAD_DELETE" 74 threadListSyncEventType = "THREAD_LIST_SYNC" 75 threadMemberUpdateEventType = "THREAD_MEMBER_UPDATE" 76 threadMembersUpdateEventType = "THREAD_MEMBERS_UPDATE" 77 threadUpdateEventType = "THREAD_UPDATE" 78 typingStartEventType = "TYPING_START" 79 userUpdateEventType = "USER_UPDATE" 80 voiceServerUpdateEventType = "VOICE_SERVER_UPDATE" 81 voiceStateUpdateEventType = "VOICE_STATE_UPDATE" 82 webhooksUpdateEventType = "WEBHOOKS_UPDATE" 83 ) 84 85 // applicationCommandPermissionsUpdateEventHandler is an event handler for ApplicationCommandPermissionsUpdate events. 86 type applicationCommandPermissionsUpdateEventHandler func(*Session, *ApplicationCommandPermissionsUpdate) 87 88 // Type returns the event type for ApplicationCommandPermissionsUpdate events. 89 func (eh applicationCommandPermissionsUpdateEventHandler) Type() string { 90 return applicationCommandPermissionsUpdateEventType 91 } 92 93 // New returns a new instance of ApplicationCommandPermissionsUpdate. 94 func (eh applicationCommandPermissionsUpdateEventHandler) New() interface{} { 95 return &ApplicationCommandPermissionsUpdate{} 96 } 97 98 // Handle is the handler for ApplicationCommandPermissionsUpdate events. 99 func (eh applicationCommandPermissionsUpdateEventHandler) Handle(s *Session, i interface{}) { 100 if t, ok := i.(*ApplicationCommandPermissionsUpdate); ok { 101 eh(s, t) 102 } 103 } 104 105 // autoModerationActionExecutionEventHandler is an event handler for AutoModerationActionExecution events. 106 type autoModerationActionExecutionEventHandler func(*Session, *AutoModerationActionExecution) 107 108 // Type returns the event type for AutoModerationActionExecution events. 109 func (eh autoModerationActionExecutionEventHandler) Type() string { 110 return autoModerationActionExecutionEventType 111 } 112 113 // New returns a new instance of AutoModerationActionExecution. 114 func (eh autoModerationActionExecutionEventHandler) New() interface{} { 115 return &AutoModerationActionExecution{} 116 } 117 118 // Handle is the handler for AutoModerationActionExecution events. 119 func (eh autoModerationActionExecutionEventHandler) Handle(s *Session, i interface{}) { 120 if t, ok := i.(*AutoModerationActionExecution); ok { 121 eh(s, t) 122 } 123 } 124 125 // autoModerationRuleCreateEventHandler is an event handler for AutoModerationRuleCreate events. 126 type autoModerationRuleCreateEventHandler func(*Session, *AutoModerationRuleCreate) 127 128 // Type returns the event type for AutoModerationRuleCreate events. 129 func (eh autoModerationRuleCreateEventHandler) Type() string { 130 return autoModerationRuleCreateEventType 131 } 132 133 // New returns a new instance of AutoModerationRuleCreate. 134 func (eh autoModerationRuleCreateEventHandler) New() interface{} { 135 return &AutoModerationRuleCreate{} 136 } 137 138 // Handle is the handler for AutoModerationRuleCreate events. 139 func (eh autoModerationRuleCreateEventHandler) Handle(s *Session, i interface{}) { 140 if t, ok := i.(*AutoModerationRuleCreate); ok { 141 eh(s, t) 142 } 143 } 144 145 // autoModerationRuleDeleteEventHandler is an event handler for AutoModerationRuleDelete events. 146 type autoModerationRuleDeleteEventHandler func(*Session, *AutoModerationRuleDelete) 147 148 // Type returns the event type for AutoModerationRuleDelete events. 149 func (eh autoModerationRuleDeleteEventHandler) Type() string { 150 return autoModerationRuleDeleteEventType 151 } 152 153 // New returns a new instance of AutoModerationRuleDelete. 154 func (eh autoModerationRuleDeleteEventHandler) New() interface{} { 155 return &AutoModerationRuleDelete{} 156 } 157 158 // Handle is the handler for AutoModerationRuleDelete events. 159 func (eh autoModerationRuleDeleteEventHandler) Handle(s *Session, i interface{}) { 160 if t, ok := i.(*AutoModerationRuleDelete); ok { 161 eh(s, t) 162 } 163 } 164 165 // autoModerationRuleUpdateEventHandler is an event handler for AutoModerationRuleUpdate events. 166 type autoModerationRuleUpdateEventHandler func(*Session, *AutoModerationRuleUpdate) 167 168 // Type returns the event type for AutoModerationRuleUpdate events. 169 func (eh autoModerationRuleUpdateEventHandler) Type() string { 170 return autoModerationRuleUpdateEventType 171 } 172 173 // New returns a new instance of AutoModerationRuleUpdate. 174 func (eh autoModerationRuleUpdateEventHandler) New() interface{} { 175 return &AutoModerationRuleUpdate{} 176 } 177 178 // Handle is the handler for AutoModerationRuleUpdate events. 179 func (eh autoModerationRuleUpdateEventHandler) Handle(s *Session, i interface{}) { 180 if t, ok := i.(*AutoModerationRuleUpdate); ok { 181 eh(s, t) 182 } 183 } 184 185 // channelCreateEventHandler is an event handler for ChannelCreate events. 186 type channelCreateEventHandler func(*Session, *ChannelCreate) 187 188 // Type returns the event type for ChannelCreate events. 189 func (eh channelCreateEventHandler) Type() string { 190 return channelCreateEventType 191 } 192 193 // New returns a new instance of ChannelCreate. 194 func (eh channelCreateEventHandler) New() interface{} { 195 return &ChannelCreate{} 196 } 197 198 // Handle is the handler for ChannelCreate events. 199 func (eh channelCreateEventHandler) Handle(s *Session, i interface{}) { 200 if t, ok := i.(*ChannelCreate); ok { 201 eh(s, t) 202 } 203 } 204 205 // channelDeleteEventHandler is an event handler for ChannelDelete events. 206 type channelDeleteEventHandler func(*Session, *ChannelDelete) 207 208 // Type returns the event type for ChannelDelete events. 209 func (eh channelDeleteEventHandler) Type() string { 210 return channelDeleteEventType 211 } 212 213 // New returns a new instance of ChannelDelete. 214 func (eh channelDeleteEventHandler) New() interface{} { 215 return &ChannelDelete{} 216 } 217 218 // Handle is the handler for ChannelDelete events. 219 func (eh channelDeleteEventHandler) Handle(s *Session, i interface{}) { 220 if t, ok := i.(*ChannelDelete); ok { 221 eh(s, t) 222 } 223 } 224 225 // channelPinsUpdateEventHandler is an event handler for ChannelPinsUpdate events. 226 type channelPinsUpdateEventHandler func(*Session, *ChannelPinsUpdate) 227 228 // Type returns the event type for ChannelPinsUpdate events. 229 func (eh channelPinsUpdateEventHandler) Type() string { 230 return channelPinsUpdateEventType 231 } 232 233 // New returns a new instance of ChannelPinsUpdate. 234 func (eh channelPinsUpdateEventHandler) New() interface{} { 235 return &ChannelPinsUpdate{} 236 } 237 238 // Handle is the handler for ChannelPinsUpdate events. 239 func (eh channelPinsUpdateEventHandler) Handle(s *Session, i interface{}) { 240 if t, ok := i.(*ChannelPinsUpdate); ok { 241 eh(s, t) 242 } 243 } 244 245 // channelUpdateEventHandler is an event handler for ChannelUpdate events. 246 type channelUpdateEventHandler func(*Session, *ChannelUpdate) 247 248 // Type returns the event type for ChannelUpdate events. 249 func (eh channelUpdateEventHandler) Type() string { 250 return channelUpdateEventType 251 } 252 253 // New returns a new instance of ChannelUpdate. 254 func (eh channelUpdateEventHandler) New() interface{} { 255 return &ChannelUpdate{} 256 } 257 258 // Handle is the handler for ChannelUpdate events. 259 func (eh channelUpdateEventHandler) Handle(s *Session, i interface{}) { 260 if t, ok := i.(*ChannelUpdate); ok { 261 eh(s, t) 262 } 263 } 264 265 // connectEventHandler is an event handler for Connect events. 266 type connectEventHandler func(*Session, *Connect) 267 268 // Type returns the event type for Connect events. 269 func (eh connectEventHandler) Type() string { 270 return connectEventType 271 } 272 273 // Handle is the handler for Connect events. 274 func (eh connectEventHandler) Handle(s *Session, i interface{}) { 275 if t, ok := i.(*Connect); ok { 276 eh(s, t) 277 } 278 } 279 280 // disconnectEventHandler is an event handler for Disconnect events. 281 type disconnectEventHandler func(*Session, *Disconnect) 282 283 // Type returns the event type for Disconnect events. 284 func (eh disconnectEventHandler) Type() string { 285 return disconnectEventType 286 } 287 288 // Handle is the handler for Disconnect events. 289 func (eh disconnectEventHandler) Handle(s *Session, i interface{}) { 290 if t, ok := i.(*Disconnect); ok { 291 eh(s, t) 292 } 293 } 294 295 // entitlementCreateEventHandler is an event handler for EntitlementCreate events. 296 type entitlementCreateEventHandler func(*Session, *EntitlementCreate) 297 298 // Type returns the event type for EntitlementCreate events. 299 func (eh entitlementCreateEventHandler) Type() string { 300 return entitlementCreateEventType 301 } 302 303 // New returns a new instance of EntitlementCreate. 304 func (eh entitlementCreateEventHandler) New() interface{} { 305 return &EntitlementCreate{} 306 } 307 308 // Handle is the handler for EntitlementCreate events. 309 func (eh entitlementCreateEventHandler) Handle(s *Session, i interface{}) { 310 if t, ok := i.(*EntitlementCreate); ok { 311 eh(s, t) 312 } 313 } 314 315 // entitlementDeleteEventHandler is an event handler for EntitlementDelete events. 316 type entitlementDeleteEventHandler func(*Session, *EntitlementDelete) 317 318 // Type returns the event type for EntitlementDelete events. 319 func (eh entitlementDeleteEventHandler) Type() string { 320 return entitlementDeleteEventType 321 } 322 323 // New returns a new instance of EntitlementDelete. 324 func (eh entitlementDeleteEventHandler) New() interface{} { 325 return &EntitlementDelete{} 326 } 327 328 // Handle is the handler for EntitlementDelete events. 329 func (eh entitlementDeleteEventHandler) Handle(s *Session, i interface{}) { 330 if t, ok := i.(*EntitlementDelete); ok { 331 eh(s, t) 332 } 333 } 334 335 // entitlementUpdateEventHandler is an event handler for EntitlementUpdate events. 336 type entitlementUpdateEventHandler func(*Session, *EntitlementUpdate) 337 338 // Type returns the event type for EntitlementUpdate events. 339 func (eh entitlementUpdateEventHandler) Type() string { 340 return entitlementUpdateEventType 341 } 342 343 // New returns a new instance of EntitlementUpdate. 344 func (eh entitlementUpdateEventHandler) New() interface{} { 345 return &EntitlementUpdate{} 346 } 347 348 // Handle is the handler for EntitlementUpdate events. 349 func (eh entitlementUpdateEventHandler) Handle(s *Session, i interface{}) { 350 if t, ok := i.(*EntitlementUpdate); ok { 351 eh(s, t) 352 } 353 } 354 355 // eventEventHandler is an event handler for Event events. 356 type eventEventHandler func(*Session, *Event) 357 358 // Type returns the event type for Event events. 359 func (eh eventEventHandler) Type() string { 360 return eventEventType 361 } 362 363 // Handle is the handler for Event events. 364 func (eh eventEventHandler) Handle(s *Session, i interface{}) { 365 if t, ok := i.(*Event); ok { 366 eh(s, t) 367 } 368 } 369 370 // guildAuditLogEntryCreateEventHandler is an event handler for GuildAuditLogEntryCreate events. 371 type guildAuditLogEntryCreateEventHandler func(*Session, *GuildAuditLogEntryCreate) 372 373 // Type returns the event type for GuildAuditLogEntryCreate events. 374 func (eh guildAuditLogEntryCreateEventHandler) Type() string { 375 return guildAuditLogEntryCreateEventType 376 } 377 378 // New returns a new instance of GuildAuditLogEntryCreate. 379 func (eh guildAuditLogEntryCreateEventHandler) New() interface{} { 380 return &GuildAuditLogEntryCreate{} 381 } 382 383 // Handle is the handler for GuildAuditLogEntryCreate events. 384 func (eh guildAuditLogEntryCreateEventHandler) Handle(s *Session, i interface{}) { 385 if t, ok := i.(*GuildAuditLogEntryCreate); ok { 386 eh(s, t) 387 } 388 } 389 390 // guildBanAddEventHandler is an event handler for GuildBanAdd events. 391 type guildBanAddEventHandler func(*Session, *GuildBanAdd) 392 393 // Type returns the event type for GuildBanAdd events. 394 func (eh guildBanAddEventHandler) Type() string { 395 return guildBanAddEventType 396 } 397 398 // New returns a new instance of GuildBanAdd. 399 func (eh guildBanAddEventHandler) New() interface{} { 400 return &GuildBanAdd{} 401 } 402 403 // Handle is the handler for GuildBanAdd events. 404 func (eh guildBanAddEventHandler) Handle(s *Session, i interface{}) { 405 if t, ok := i.(*GuildBanAdd); ok { 406 eh(s, t) 407 } 408 } 409 410 // guildBanRemoveEventHandler is an event handler for GuildBanRemove events. 411 type guildBanRemoveEventHandler func(*Session, *GuildBanRemove) 412 413 // Type returns the event type for GuildBanRemove events. 414 func (eh guildBanRemoveEventHandler) Type() string { 415 return guildBanRemoveEventType 416 } 417 418 // New returns a new instance of GuildBanRemove. 419 func (eh guildBanRemoveEventHandler) New() interface{} { 420 return &GuildBanRemove{} 421 } 422 423 // Handle is the handler for GuildBanRemove events. 424 func (eh guildBanRemoveEventHandler) Handle(s *Session, i interface{}) { 425 if t, ok := i.(*GuildBanRemove); ok { 426 eh(s, t) 427 } 428 } 429 430 // guildCreateEventHandler is an event handler for GuildCreate events. 431 type guildCreateEventHandler func(*Session, *GuildCreate) 432 433 // Type returns the event type for GuildCreate events. 434 func (eh guildCreateEventHandler) Type() string { 435 return guildCreateEventType 436 } 437 438 // New returns a new instance of GuildCreate. 439 func (eh guildCreateEventHandler) New() interface{} { 440 return &GuildCreate{} 441 } 442 443 // Handle is the handler for GuildCreate events. 444 func (eh guildCreateEventHandler) Handle(s *Session, i interface{}) { 445 if t, ok := i.(*GuildCreate); ok { 446 eh(s, t) 447 } 448 } 449 450 // guildDeleteEventHandler is an event handler for GuildDelete events. 451 type guildDeleteEventHandler func(*Session, *GuildDelete) 452 453 // Type returns the event type for GuildDelete events. 454 func (eh guildDeleteEventHandler) Type() string { 455 return guildDeleteEventType 456 } 457 458 // New returns a new instance of GuildDelete. 459 func (eh guildDeleteEventHandler) New() interface{} { 460 return &GuildDelete{} 461 } 462 463 // Handle is the handler for GuildDelete events. 464 func (eh guildDeleteEventHandler) Handle(s *Session, i interface{}) { 465 if t, ok := i.(*GuildDelete); ok { 466 eh(s, t) 467 } 468 } 469 470 // guildEmojisUpdateEventHandler is an event handler for GuildEmojisUpdate events. 471 type guildEmojisUpdateEventHandler func(*Session, *GuildEmojisUpdate) 472 473 // Type returns the event type for GuildEmojisUpdate events. 474 func (eh guildEmojisUpdateEventHandler) Type() string { 475 return guildEmojisUpdateEventType 476 } 477 478 // New returns a new instance of GuildEmojisUpdate. 479 func (eh guildEmojisUpdateEventHandler) New() interface{} { 480 return &GuildEmojisUpdate{} 481 } 482 483 // Handle is the handler for GuildEmojisUpdate events. 484 func (eh guildEmojisUpdateEventHandler) Handle(s *Session, i interface{}) { 485 if t, ok := i.(*GuildEmojisUpdate); ok { 486 eh(s, t) 487 } 488 } 489 490 // guildIntegrationsUpdateEventHandler is an event handler for GuildIntegrationsUpdate events. 491 type guildIntegrationsUpdateEventHandler func(*Session, *GuildIntegrationsUpdate) 492 493 // Type returns the event type for GuildIntegrationsUpdate events. 494 func (eh guildIntegrationsUpdateEventHandler) Type() string { 495 return guildIntegrationsUpdateEventType 496 } 497 498 // New returns a new instance of GuildIntegrationsUpdate. 499 func (eh guildIntegrationsUpdateEventHandler) New() interface{} { 500 return &GuildIntegrationsUpdate{} 501 } 502 503 // Handle is the handler for GuildIntegrationsUpdate events. 504 func (eh guildIntegrationsUpdateEventHandler) Handle(s *Session, i interface{}) { 505 if t, ok := i.(*GuildIntegrationsUpdate); ok { 506 eh(s, t) 507 } 508 } 509 510 // guildMemberAddEventHandler is an event handler for GuildMemberAdd events. 511 type guildMemberAddEventHandler func(*Session, *GuildMemberAdd) 512 513 // Type returns the event type for GuildMemberAdd events. 514 func (eh guildMemberAddEventHandler) Type() string { 515 return guildMemberAddEventType 516 } 517 518 // New returns a new instance of GuildMemberAdd. 519 func (eh guildMemberAddEventHandler) New() interface{} { 520 return &GuildMemberAdd{} 521 } 522 523 // Handle is the handler for GuildMemberAdd events. 524 func (eh guildMemberAddEventHandler) Handle(s *Session, i interface{}) { 525 if t, ok := i.(*GuildMemberAdd); ok { 526 eh(s, t) 527 } 528 } 529 530 // guildMemberRemoveEventHandler is an event handler for GuildMemberRemove events. 531 type guildMemberRemoveEventHandler func(*Session, *GuildMemberRemove) 532 533 // Type returns the event type for GuildMemberRemove events. 534 func (eh guildMemberRemoveEventHandler) Type() string { 535 return guildMemberRemoveEventType 536 } 537 538 // New returns a new instance of GuildMemberRemove. 539 func (eh guildMemberRemoveEventHandler) New() interface{} { 540 return &GuildMemberRemove{} 541 } 542 543 // Handle is the handler for GuildMemberRemove events. 544 func (eh guildMemberRemoveEventHandler) Handle(s *Session, i interface{}) { 545 if t, ok := i.(*GuildMemberRemove); ok { 546 eh(s, t) 547 } 548 } 549 550 // guildMemberUpdateEventHandler is an event handler for GuildMemberUpdate events. 551 type guildMemberUpdateEventHandler func(*Session, *GuildMemberUpdate) 552 553 // Type returns the event type for GuildMemberUpdate events. 554 func (eh guildMemberUpdateEventHandler) Type() string { 555 return guildMemberUpdateEventType 556 } 557 558 // New returns a new instance of GuildMemberUpdate. 559 func (eh guildMemberUpdateEventHandler) New() interface{} { 560 return &GuildMemberUpdate{} 561 } 562 563 // Handle is the handler for GuildMemberUpdate events. 564 func (eh guildMemberUpdateEventHandler) Handle(s *Session, i interface{}) { 565 if t, ok := i.(*GuildMemberUpdate); ok { 566 eh(s, t) 567 } 568 } 569 570 // guildMembersChunkEventHandler is an event handler for GuildMembersChunk events. 571 type guildMembersChunkEventHandler func(*Session, *GuildMembersChunk) 572 573 // Type returns the event type for GuildMembersChunk events. 574 func (eh guildMembersChunkEventHandler) Type() string { 575 return guildMembersChunkEventType 576 } 577 578 // New returns a new instance of GuildMembersChunk. 579 func (eh guildMembersChunkEventHandler) New() interface{} { 580 return &GuildMembersChunk{} 581 } 582 583 // Handle is the handler for GuildMembersChunk events. 584 func (eh guildMembersChunkEventHandler) Handle(s *Session, i interface{}) { 585 if t, ok := i.(*GuildMembersChunk); ok { 586 eh(s, t) 587 } 588 } 589 590 // guildRoleCreateEventHandler is an event handler for GuildRoleCreate events. 591 type guildRoleCreateEventHandler func(*Session, *GuildRoleCreate) 592 593 // Type returns the event type for GuildRoleCreate events. 594 func (eh guildRoleCreateEventHandler) Type() string { 595 return guildRoleCreateEventType 596 } 597 598 // New returns a new instance of GuildRoleCreate. 599 func (eh guildRoleCreateEventHandler) New() interface{} { 600 return &GuildRoleCreate{} 601 } 602 603 // Handle is the handler for GuildRoleCreate events. 604 func (eh guildRoleCreateEventHandler) Handle(s *Session, i interface{}) { 605 if t, ok := i.(*GuildRoleCreate); ok { 606 eh(s, t) 607 } 608 } 609 610 // guildRoleDeleteEventHandler is an event handler for GuildRoleDelete events. 611 type guildRoleDeleteEventHandler func(*Session, *GuildRoleDelete) 612 613 // Type returns the event type for GuildRoleDelete events. 614 func (eh guildRoleDeleteEventHandler) Type() string { 615 return guildRoleDeleteEventType 616 } 617 618 // New returns a new instance of GuildRoleDelete. 619 func (eh guildRoleDeleteEventHandler) New() interface{} { 620 return &GuildRoleDelete{} 621 } 622 623 // Handle is the handler for GuildRoleDelete events. 624 func (eh guildRoleDeleteEventHandler) Handle(s *Session, i interface{}) { 625 if t, ok := i.(*GuildRoleDelete); ok { 626 eh(s, t) 627 } 628 } 629 630 // guildRoleUpdateEventHandler is an event handler for GuildRoleUpdate events. 631 type guildRoleUpdateEventHandler func(*Session, *GuildRoleUpdate) 632 633 // Type returns the event type for GuildRoleUpdate events. 634 func (eh guildRoleUpdateEventHandler) Type() string { 635 return guildRoleUpdateEventType 636 } 637 638 // New returns a new instance of GuildRoleUpdate. 639 func (eh guildRoleUpdateEventHandler) New() interface{} { 640 return &GuildRoleUpdate{} 641 } 642 643 // Handle is the handler for GuildRoleUpdate events. 644 func (eh guildRoleUpdateEventHandler) Handle(s *Session, i interface{}) { 645 if t, ok := i.(*GuildRoleUpdate); ok { 646 eh(s, t) 647 } 648 } 649 650 // guildScheduledEventCreateEventHandler is an event handler for GuildScheduledEventCreate events. 651 type guildScheduledEventCreateEventHandler func(*Session, *GuildScheduledEventCreate) 652 653 // Type returns the event type for GuildScheduledEventCreate events. 654 func (eh guildScheduledEventCreateEventHandler) Type() string { 655 return guildScheduledEventCreateEventType 656 } 657 658 // New returns a new instance of GuildScheduledEventCreate. 659 func (eh guildScheduledEventCreateEventHandler) New() interface{} { 660 return &GuildScheduledEventCreate{} 661 } 662 663 // Handle is the handler for GuildScheduledEventCreate events. 664 func (eh guildScheduledEventCreateEventHandler) Handle(s *Session, i interface{}) { 665 if t, ok := i.(*GuildScheduledEventCreate); ok { 666 eh(s, t) 667 } 668 } 669 670 // guildScheduledEventDeleteEventHandler is an event handler for GuildScheduledEventDelete events. 671 type guildScheduledEventDeleteEventHandler func(*Session, *GuildScheduledEventDelete) 672 673 // Type returns the event type for GuildScheduledEventDelete events. 674 func (eh guildScheduledEventDeleteEventHandler) Type() string { 675 return guildScheduledEventDeleteEventType 676 } 677 678 // New returns a new instance of GuildScheduledEventDelete. 679 func (eh guildScheduledEventDeleteEventHandler) New() interface{} { 680 return &GuildScheduledEventDelete{} 681 } 682 683 // Handle is the handler for GuildScheduledEventDelete events. 684 func (eh guildScheduledEventDeleteEventHandler) Handle(s *Session, i interface{}) { 685 if t, ok := i.(*GuildScheduledEventDelete); ok { 686 eh(s, t) 687 } 688 } 689 690 // guildScheduledEventUpdateEventHandler is an event handler for GuildScheduledEventUpdate events. 691 type guildScheduledEventUpdateEventHandler func(*Session, *GuildScheduledEventUpdate) 692 693 // Type returns the event type for GuildScheduledEventUpdate events. 694 func (eh guildScheduledEventUpdateEventHandler) Type() string { 695 return guildScheduledEventUpdateEventType 696 } 697 698 // New returns a new instance of GuildScheduledEventUpdate. 699 func (eh guildScheduledEventUpdateEventHandler) New() interface{} { 700 return &GuildScheduledEventUpdate{} 701 } 702 703 // Handle is the handler for GuildScheduledEventUpdate events. 704 func (eh guildScheduledEventUpdateEventHandler) Handle(s *Session, i interface{}) { 705 if t, ok := i.(*GuildScheduledEventUpdate); ok { 706 eh(s, t) 707 } 708 } 709 710 // guildScheduledEventUserAddEventHandler is an event handler for GuildScheduledEventUserAdd events. 711 type guildScheduledEventUserAddEventHandler func(*Session, *GuildScheduledEventUserAdd) 712 713 // Type returns the event type for GuildScheduledEventUserAdd events. 714 func (eh guildScheduledEventUserAddEventHandler) Type() string { 715 return guildScheduledEventUserAddEventType 716 } 717 718 // New returns a new instance of GuildScheduledEventUserAdd. 719 func (eh guildScheduledEventUserAddEventHandler) New() interface{} { 720 return &GuildScheduledEventUserAdd{} 721 } 722 723 // Handle is the handler for GuildScheduledEventUserAdd events. 724 func (eh guildScheduledEventUserAddEventHandler) Handle(s *Session, i interface{}) { 725 if t, ok := i.(*GuildScheduledEventUserAdd); ok { 726 eh(s, t) 727 } 728 } 729 730 // guildScheduledEventUserRemoveEventHandler is an event handler for GuildScheduledEventUserRemove events. 731 type guildScheduledEventUserRemoveEventHandler func(*Session, *GuildScheduledEventUserRemove) 732 733 // Type returns the event type for GuildScheduledEventUserRemove events. 734 func (eh guildScheduledEventUserRemoveEventHandler) Type() string { 735 return guildScheduledEventUserRemoveEventType 736 } 737 738 // New returns a new instance of GuildScheduledEventUserRemove. 739 func (eh guildScheduledEventUserRemoveEventHandler) New() interface{} { 740 return &GuildScheduledEventUserRemove{} 741 } 742 743 // Handle is the handler for GuildScheduledEventUserRemove events. 744 func (eh guildScheduledEventUserRemoveEventHandler) Handle(s *Session, i interface{}) { 745 if t, ok := i.(*GuildScheduledEventUserRemove); ok { 746 eh(s, t) 747 } 748 } 749 750 // guildStickersUpdateEventHandler is an event handler for GuildStickersUpdate events. 751 type guildStickersUpdateEventHandler func(*Session, *GuildStickersUpdate) 752 753 // Type returns the event type for GuildStickersUpdate events. 754 func (eh guildStickersUpdateEventHandler) Type() string { 755 return guildStickersUpdateEventType 756 } 757 758 // New returns a new instance of GuildStickersUpdate. 759 func (eh guildStickersUpdateEventHandler) New() interface{} { 760 return &GuildStickersUpdate{} 761 } 762 763 // Handle is the handler for GuildStickersUpdate events. 764 func (eh guildStickersUpdateEventHandler) Handle(s *Session, i interface{}) { 765 if t, ok := i.(*GuildStickersUpdate); ok { 766 eh(s, t) 767 } 768 } 769 770 // guildUpdateEventHandler is an event handler for GuildUpdate events. 771 type guildUpdateEventHandler func(*Session, *GuildUpdate) 772 773 // Type returns the event type for GuildUpdate events. 774 func (eh guildUpdateEventHandler) Type() string { 775 return guildUpdateEventType 776 } 777 778 // New returns a new instance of GuildUpdate. 779 func (eh guildUpdateEventHandler) New() interface{} { 780 return &GuildUpdate{} 781 } 782 783 // Handle is the handler for GuildUpdate events. 784 func (eh guildUpdateEventHandler) Handle(s *Session, i interface{}) { 785 if t, ok := i.(*GuildUpdate); ok { 786 eh(s, t) 787 } 788 } 789 790 // integrationCreateEventHandler is an event handler for IntegrationCreate events. 791 type integrationCreateEventHandler func(*Session, *IntegrationCreate) 792 793 // Type returns the event type for IntegrationCreate events. 794 func (eh integrationCreateEventHandler) Type() string { 795 return integrationCreateEventType 796 } 797 798 // New returns a new instance of IntegrationCreate. 799 func (eh integrationCreateEventHandler) New() interface{} { 800 return &IntegrationCreate{} 801 } 802 803 // Handle is the handler for IntegrationCreate events. 804 func (eh integrationCreateEventHandler) Handle(s *Session, i interface{}) { 805 if t, ok := i.(*IntegrationCreate); ok { 806 eh(s, t) 807 } 808 } 809 810 // integrationDeleteEventHandler is an event handler for IntegrationDelete events. 811 type integrationDeleteEventHandler func(*Session, *IntegrationDelete) 812 813 // Type returns the event type for IntegrationDelete events. 814 func (eh integrationDeleteEventHandler) Type() string { 815 return integrationDeleteEventType 816 } 817 818 // New returns a new instance of IntegrationDelete. 819 func (eh integrationDeleteEventHandler) New() interface{} { 820 return &IntegrationDelete{} 821 } 822 823 // Handle is the handler for IntegrationDelete events. 824 func (eh integrationDeleteEventHandler) Handle(s *Session, i interface{}) { 825 if t, ok := i.(*IntegrationDelete); ok { 826 eh(s, t) 827 } 828 } 829 830 // integrationUpdateEventHandler is an event handler for IntegrationUpdate events. 831 type integrationUpdateEventHandler func(*Session, *IntegrationUpdate) 832 833 // Type returns the event type for IntegrationUpdate events. 834 func (eh integrationUpdateEventHandler) Type() string { 835 return integrationUpdateEventType 836 } 837 838 // New returns a new instance of IntegrationUpdate. 839 func (eh integrationUpdateEventHandler) New() interface{} { 840 return &IntegrationUpdate{} 841 } 842 843 // Handle is the handler for IntegrationUpdate events. 844 func (eh integrationUpdateEventHandler) Handle(s *Session, i interface{}) { 845 if t, ok := i.(*IntegrationUpdate); ok { 846 eh(s, t) 847 } 848 } 849 850 // interactionCreateEventHandler is an event handler for InteractionCreate events. 851 type interactionCreateEventHandler func(*Session, *InteractionCreate) 852 853 // Type returns the event type for InteractionCreate events. 854 func (eh interactionCreateEventHandler) Type() string { 855 return interactionCreateEventType 856 } 857 858 // New returns a new instance of InteractionCreate. 859 func (eh interactionCreateEventHandler) New() interface{} { 860 return &InteractionCreate{} 861 } 862 863 // Handle is the handler for InteractionCreate events. 864 func (eh interactionCreateEventHandler) Handle(s *Session, i interface{}) { 865 if t, ok := i.(*InteractionCreate); ok { 866 eh(s, t) 867 } 868 } 869 870 // inviteCreateEventHandler is an event handler for InviteCreate events. 871 type inviteCreateEventHandler func(*Session, *InviteCreate) 872 873 // Type returns the event type for InviteCreate events. 874 func (eh inviteCreateEventHandler) Type() string { 875 return inviteCreateEventType 876 } 877 878 // New returns a new instance of InviteCreate. 879 func (eh inviteCreateEventHandler) New() interface{} { 880 return &InviteCreate{} 881 } 882 883 // Handle is the handler for InviteCreate events. 884 func (eh inviteCreateEventHandler) Handle(s *Session, i interface{}) { 885 if t, ok := i.(*InviteCreate); ok { 886 eh(s, t) 887 } 888 } 889 890 // inviteDeleteEventHandler is an event handler for InviteDelete events. 891 type inviteDeleteEventHandler func(*Session, *InviteDelete) 892 893 // Type returns the event type for InviteDelete events. 894 func (eh inviteDeleteEventHandler) Type() string { 895 return inviteDeleteEventType 896 } 897 898 // New returns a new instance of InviteDelete. 899 func (eh inviteDeleteEventHandler) New() interface{} { 900 return &InviteDelete{} 901 } 902 903 // Handle is the handler for InviteDelete events. 904 func (eh inviteDeleteEventHandler) Handle(s *Session, i interface{}) { 905 if t, ok := i.(*InviteDelete); ok { 906 eh(s, t) 907 } 908 } 909 910 // messageCreateEventHandler is an event handler for MessageCreate events. 911 type messageCreateEventHandler func(*Session, *MessageCreate) 912 913 // Type returns the event type for MessageCreate events. 914 func (eh messageCreateEventHandler) Type() string { 915 return messageCreateEventType 916 } 917 918 // New returns a new instance of MessageCreate. 919 func (eh messageCreateEventHandler) New() interface{} { 920 return &MessageCreate{} 921 } 922 923 // Handle is the handler for MessageCreate events. 924 func (eh messageCreateEventHandler) Handle(s *Session, i interface{}) { 925 if t, ok := i.(*MessageCreate); ok { 926 eh(s, t) 927 } 928 } 929 930 // messageDeleteEventHandler is an event handler for MessageDelete events. 931 type messageDeleteEventHandler func(*Session, *MessageDelete) 932 933 // Type returns the event type for MessageDelete events. 934 func (eh messageDeleteEventHandler) Type() string { 935 return messageDeleteEventType 936 } 937 938 // New returns a new instance of MessageDelete. 939 func (eh messageDeleteEventHandler) New() interface{} { 940 return &MessageDelete{} 941 } 942 943 // Handle is the handler for MessageDelete events. 944 func (eh messageDeleteEventHandler) Handle(s *Session, i interface{}) { 945 if t, ok := i.(*MessageDelete); ok { 946 eh(s, t) 947 } 948 } 949 950 // messageDeleteBulkEventHandler is an event handler for MessageDeleteBulk events. 951 type messageDeleteBulkEventHandler func(*Session, *MessageDeleteBulk) 952 953 // Type returns the event type for MessageDeleteBulk events. 954 func (eh messageDeleteBulkEventHandler) Type() string { 955 return messageDeleteBulkEventType 956 } 957 958 // New returns a new instance of MessageDeleteBulk. 959 func (eh messageDeleteBulkEventHandler) New() interface{} { 960 return &MessageDeleteBulk{} 961 } 962 963 // Handle is the handler for MessageDeleteBulk events. 964 func (eh messageDeleteBulkEventHandler) Handle(s *Session, i interface{}) { 965 if t, ok := i.(*MessageDeleteBulk); ok { 966 eh(s, t) 967 } 968 } 969 970 // messagePollVoteAddEventHandler is an event handler for MessagePollVoteAdd events. 971 type messagePollVoteAddEventHandler func(*Session, *MessagePollVoteAdd) 972 973 // Type returns the event type for MessagePollVoteAdd events. 974 func (eh messagePollVoteAddEventHandler) Type() string { 975 return messagePollVoteAddEventType 976 } 977 978 // New returns a new instance of MessagePollVoteAdd. 979 func (eh messagePollVoteAddEventHandler) New() interface{} { 980 return &MessagePollVoteAdd{} 981 } 982 983 // Handle is the handler for MessagePollVoteAdd events. 984 func (eh messagePollVoteAddEventHandler) Handle(s *Session, i interface{}) { 985 if t, ok := i.(*MessagePollVoteAdd); ok { 986 eh(s, t) 987 } 988 } 989 990 // messagePollVoteRemoveEventHandler is an event handler for MessagePollVoteRemove events. 991 type messagePollVoteRemoveEventHandler func(*Session, *MessagePollVoteRemove) 992 993 // Type returns the event type for MessagePollVoteRemove events. 994 func (eh messagePollVoteRemoveEventHandler) Type() string { 995 return messagePollVoteRemoveEventType 996 } 997 998 // New returns a new instance of MessagePollVoteRemove. 999 func (eh messagePollVoteRemoveEventHandler) New() interface{} { 1000 return &MessagePollVoteRemove{} 1001 } 1002 1003 // Handle is the handler for MessagePollVoteRemove events. 1004 func (eh messagePollVoteRemoveEventHandler) Handle(s *Session, i interface{}) { 1005 if t, ok := i.(*MessagePollVoteRemove); ok { 1006 eh(s, t) 1007 } 1008 } 1009 1010 // messageReactionAddEventHandler is an event handler for MessageReactionAdd events. 1011 type messageReactionAddEventHandler func(*Session, *MessageReactionAdd) 1012 1013 // Type returns the event type for MessageReactionAdd events. 1014 func (eh messageReactionAddEventHandler) Type() string { 1015 return messageReactionAddEventType 1016 } 1017 1018 // New returns a new instance of MessageReactionAdd. 1019 func (eh messageReactionAddEventHandler) New() interface{} { 1020 return &MessageReactionAdd{} 1021 } 1022 1023 // Handle is the handler for MessageReactionAdd events. 1024 func (eh messageReactionAddEventHandler) Handle(s *Session, i interface{}) { 1025 if t, ok := i.(*MessageReactionAdd); ok { 1026 eh(s, t) 1027 } 1028 } 1029 1030 // messageReactionRemoveEventHandler is an event handler for MessageReactionRemove events. 1031 type messageReactionRemoveEventHandler func(*Session, *MessageReactionRemove) 1032 1033 // Type returns the event type for MessageReactionRemove events. 1034 func (eh messageReactionRemoveEventHandler) Type() string { 1035 return messageReactionRemoveEventType 1036 } 1037 1038 // New returns a new instance of MessageReactionRemove. 1039 func (eh messageReactionRemoveEventHandler) New() interface{} { 1040 return &MessageReactionRemove{} 1041 } 1042 1043 // Handle is the handler for MessageReactionRemove events. 1044 func (eh messageReactionRemoveEventHandler) Handle(s *Session, i interface{}) { 1045 if t, ok := i.(*MessageReactionRemove); ok { 1046 eh(s, t) 1047 } 1048 } 1049 1050 // messageReactionRemoveAllEventHandler is an event handler for MessageReactionRemoveAll events. 1051 type messageReactionRemoveAllEventHandler func(*Session, *MessageReactionRemoveAll) 1052 1053 // Type returns the event type for MessageReactionRemoveAll events. 1054 func (eh messageReactionRemoveAllEventHandler) Type() string { 1055 return messageReactionRemoveAllEventType 1056 } 1057 1058 // New returns a new instance of MessageReactionRemoveAll. 1059 func (eh messageReactionRemoveAllEventHandler) New() interface{} { 1060 return &MessageReactionRemoveAll{} 1061 } 1062 1063 // Handle is the handler for MessageReactionRemoveAll events. 1064 func (eh messageReactionRemoveAllEventHandler) Handle(s *Session, i interface{}) { 1065 if t, ok := i.(*MessageReactionRemoveAll); ok { 1066 eh(s, t) 1067 } 1068 } 1069 1070 // messageUpdateEventHandler is an event handler for MessageUpdate events. 1071 type messageUpdateEventHandler func(*Session, *MessageUpdate) 1072 1073 // Type returns the event type for MessageUpdate events. 1074 func (eh messageUpdateEventHandler) Type() string { 1075 return messageUpdateEventType 1076 } 1077 1078 // New returns a new instance of MessageUpdate. 1079 func (eh messageUpdateEventHandler) New() interface{} { 1080 return &MessageUpdate{} 1081 } 1082 1083 // Handle is the handler for MessageUpdate events. 1084 func (eh messageUpdateEventHandler) Handle(s *Session, i interface{}) { 1085 if t, ok := i.(*MessageUpdate); ok { 1086 eh(s, t) 1087 } 1088 } 1089 1090 // presenceUpdateEventHandler is an event handler for PresenceUpdate events. 1091 type presenceUpdateEventHandler func(*Session, *PresenceUpdate) 1092 1093 // Type returns the event type for PresenceUpdate events. 1094 func (eh presenceUpdateEventHandler) Type() string { 1095 return presenceUpdateEventType 1096 } 1097 1098 // New returns a new instance of PresenceUpdate. 1099 func (eh presenceUpdateEventHandler) New() interface{} { 1100 return &PresenceUpdate{} 1101 } 1102 1103 // Handle is the handler for PresenceUpdate events. 1104 func (eh presenceUpdateEventHandler) Handle(s *Session, i interface{}) { 1105 if t, ok := i.(*PresenceUpdate); ok { 1106 eh(s, t) 1107 } 1108 } 1109 1110 // presencesReplaceEventHandler is an event handler for PresencesReplace events. 1111 type presencesReplaceEventHandler func(*Session, *PresencesReplace) 1112 1113 // Type returns the event type for PresencesReplace events. 1114 func (eh presencesReplaceEventHandler) Type() string { 1115 return presencesReplaceEventType 1116 } 1117 1118 // New returns a new instance of PresencesReplace. 1119 func (eh presencesReplaceEventHandler) New() interface{} { 1120 return &PresencesReplace{} 1121 } 1122 1123 // Handle is the handler for PresencesReplace events. 1124 func (eh presencesReplaceEventHandler) Handle(s *Session, i interface{}) { 1125 if t, ok := i.(*PresencesReplace); ok { 1126 eh(s, t) 1127 } 1128 } 1129 1130 // rateLimitEventHandler is an event handler for RateLimit events. 1131 type rateLimitEventHandler func(*Session, *RateLimit) 1132 1133 // Type returns the event type for RateLimit events. 1134 func (eh rateLimitEventHandler) Type() string { 1135 return rateLimitEventType 1136 } 1137 1138 // Handle is the handler for RateLimit events. 1139 func (eh rateLimitEventHandler) Handle(s *Session, i interface{}) { 1140 if t, ok := i.(*RateLimit); ok { 1141 eh(s, t) 1142 } 1143 } 1144 1145 // readyEventHandler is an event handler for Ready events. 1146 type readyEventHandler func(*Session, *Ready) 1147 1148 // Type returns the event type for Ready events. 1149 func (eh readyEventHandler) Type() string { 1150 return readyEventType 1151 } 1152 1153 // New returns a new instance of Ready. 1154 func (eh readyEventHandler) New() interface{} { 1155 return &Ready{} 1156 } 1157 1158 // Handle is the handler for Ready events. 1159 func (eh readyEventHandler) Handle(s *Session, i interface{}) { 1160 if t, ok := i.(*Ready); ok { 1161 eh(s, t) 1162 } 1163 } 1164 1165 // resumedEventHandler is an event handler for Resumed events. 1166 type resumedEventHandler func(*Session, *Resumed) 1167 1168 // Type returns the event type for Resumed events. 1169 func (eh resumedEventHandler) Type() string { 1170 return resumedEventType 1171 } 1172 1173 // New returns a new instance of Resumed. 1174 func (eh resumedEventHandler) New() interface{} { 1175 return &Resumed{} 1176 } 1177 1178 // Handle is the handler for Resumed events. 1179 func (eh resumedEventHandler) Handle(s *Session, i interface{}) { 1180 if t, ok := i.(*Resumed); ok { 1181 eh(s, t) 1182 } 1183 } 1184 1185 // stageInstanceEventCreateEventHandler is an event handler for StageInstanceEventCreate events. 1186 type stageInstanceEventCreateEventHandler func(*Session, *StageInstanceEventCreate) 1187 1188 // Type returns the event type for StageInstanceEventCreate events. 1189 func (eh stageInstanceEventCreateEventHandler) Type() string { 1190 return stageInstanceEventCreateEventType 1191 } 1192 1193 // New returns a new instance of StageInstanceEventCreate. 1194 func (eh stageInstanceEventCreateEventHandler) New() interface{} { 1195 return &StageInstanceEventCreate{} 1196 } 1197 1198 // Handle is the handler for StageInstanceEventCreate events. 1199 func (eh stageInstanceEventCreateEventHandler) Handle(s *Session, i interface{}) { 1200 if t, ok := i.(*StageInstanceEventCreate); ok { 1201 eh(s, t) 1202 } 1203 } 1204 1205 // stageInstanceEventDeleteEventHandler is an event handler for StageInstanceEventDelete events. 1206 type stageInstanceEventDeleteEventHandler func(*Session, *StageInstanceEventDelete) 1207 1208 // Type returns the event type for StageInstanceEventDelete events. 1209 func (eh stageInstanceEventDeleteEventHandler) Type() string { 1210 return stageInstanceEventDeleteEventType 1211 } 1212 1213 // New returns a new instance of StageInstanceEventDelete. 1214 func (eh stageInstanceEventDeleteEventHandler) New() interface{} { 1215 return &StageInstanceEventDelete{} 1216 } 1217 1218 // Handle is the handler for StageInstanceEventDelete events. 1219 func (eh stageInstanceEventDeleteEventHandler) Handle(s *Session, i interface{}) { 1220 if t, ok := i.(*StageInstanceEventDelete); ok { 1221 eh(s, t) 1222 } 1223 } 1224 1225 // stageInstanceEventUpdateEventHandler is an event handler for StageInstanceEventUpdate events. 1226 type stageInstanceEventUpdateEventHandler func(*Session, *StageInstanceEventUpdate) 1227 1228 // Type returns the event type for StageInstanceEventUpdate events. 1229 func (eh stageInstanceEventUpdateEventHandler) Type() string { 1230 return stageInstanceEventUpdateEventType 1231 } 1232 1233 // New returns a new instance of StageInstanceEventUpdate. 1234 func (eh stageInstanceEventUpdateEventHandler) New() interface{} { 1235 return &StageInstanceEventUpdate{} 1236 } 1237 1238 // Handle is the handler for StageInstanceEventUpdate events. 1239 func (eh stageInstanceEventUpdateEventHandler) Handle(s *Session, i interface{}) { 1240 if t, ok := i.(*StageInstanceEventUpdate); ok { 1241 eh(s, t) 1242 } 1243 } 1244 1245 // subscriptionCreateEventHandler is an event handler for SubscriptionCreate events. 1246 type subscriptionCreateEventHandler func(*Session, *SubscriptionCreate) 1247 1248 // Type returns the event type for SubscriptionCreate events. 1249 func (eh subscriptionCreateEventHandler) Type() string { 1250 return subscriptionCreateEventType 1251 } 1252 1253 // New returns a new instance of SubscriptionCreate. 1254 func (eh subscriptionCreateEventHandler) New() interface{} { 1255 return &SubscriptionCreate{} 1256 } 1257 1258 // Handle is the handler for SubscriptionCreate events. 1259 func (eh subscriptionCreateEventHandler) Handle(s *Session, i interface{}) { 1260 if t, ok := i.(*SubscriptionCreate); ok { 1261 eh(s, t) 1262 } 1263 } 1264 1265 // subscriptionDeleteEventHandler is an event handler for SubscriptionDelete events. 1266 type subscriptionDeleteEventHandler func(*Session, *SubscriptionDelete) 1267 1268 // Type returns the event type for SubscriptionDelete events. 1269 func (eh subscriptionDeleteEventHandler) Type() string { 1270 return subscriptionDeleteEventType 1271 } 1272 1273 // New returns a new instance of SubscriptionDelete. 1274 func (eh subscriptionDeleteEventHandler) New() interface{} { 1275 return &SubscriptionDelete{} 1276 } 1277 1278 // Handle is the handler for SubscriptionDelete events. 1279 func (eh subscriptionDeleteEventHandler) Handle(s *Session, i interface{}) { 1280 if t, ok := i.(*SubscriptionDelete); ok { 1281 eh(s, t) 1282 } 1283 } 1284 1285 // subscriptionUpdateEventHandler is an event handler for SubscriptionUpdate events. 1286 type subscriptionUpdateEventHandler func(*Session, *SubscriptionUpdate) 1287 1288 // Type returns the event type for SubscriptionUpdate events. 1289 func (eh subscriptionUpdateEventHandler) Type() string { 1290 return subscriptionUpdateEventType 1291 } 1292 1293 // New returns a new instance of SubscriptionUpdate. 1294 func (eh subscriptionUpdateEventHandler) New() interface{} { 1295 return &SubscriptionUpdate{} 1296 } 1297 1298 // Handle is the handler for SubscriptionUpdate events. 1299 func (eh subscriptionUpdateEventHandler) Handle(s *Session, i interface{}) { 1300 if t, ok := i.(*SubscriptionUpdate); ok { 1301 eh(s, t) 1302 } 1303 } 1304 1305 // threadCreateEventHandler is an event handler for ThreadCreate events. 1306 type threadCreateEventHandler func(*Session, *ThreadCreate) 1307 1308 // Type returns the event type for ThreadCreate events. 1309 func (eh threadCreateEventHandler) Type() string { 1310 return threadCreateEventType 1311 } 1312 1313 // New returns a new instance of ThreadCreate. 1314 func (eh threadCreateEventHandler) New() interface{} { 1315 return &ThreadCreate{} 1316 } 1317 1318 // Handle is the handler for ThreadCreate events. 1319 func (eh threadCreateEventHandler) Handle(s *Session, i interface{}) { 1320 if t, ok := i.(*ThreadCreate); ok { 1321 eh(s, t) 1322 } 1323 } 1324 1325 // threadDeleteEventHandler is an event handler for ThreadDelete events. 1326 type threadDeleteEventHandler func(*Session, *ThreadDelete) 1327 1328 // Type returns the event type for ThreadDelete events. 1329 func (eh threadDeleteEventHandler) Type() string { 1330 return threadDeleteEventType 1331 } 1332 1333 // New returns a new instance of ThreadDelete. 1334 func (eh threadDeleteEventHandler) New() interface{} { 1335 return &ThreadDelete{} 1336 } 1337 1338 // Handle is the handler for ThreadDelete events. 1339 func (eh threadDeleteEventHandler) Handle(s *Session, i interface{}) { 1340 if t, ok := i.(*ThreadDelete); ok { 1341 eh(s, t) 1342 } 1343 } 1344 1345 // threadListSyncEventHandler is an event handler for ThreadListSync events. 1346 type threadListSyncEventHandler func(*Session, *ThreadListSync) 1347 1348 // Type returns the event type for ThreadListSync events. 1349 func (eh threadListSyncEventHandler) Type() string { 1350 return threadListSyncEventType 1351 } 1352 1353 // New returns a new instance of ThreadListSync. 1354 func (eh threadListSyncEventHandler) New() interface{} { 1355 return &ThreadListSync{} 1356 } 1357 1358 // Handle is the handler for ThreadListSync events. 1359 func (eh threadListSyncEventHandler) Handle(s *Session, i interface{}) { 1360 if t, ok := i.(*ThreadListSync); ok { 1361 eh(s, t) 1362 } 1363 } 1364 1365 // threadMemberUpdateEventHandler is an event handler for ThreadMemberUpdate events. 1366 type threadMemberUpdateEventHandler func(*Session, *ThreadMemberUpdate) 1367 1368 // Type returns the event type for ThreadMemberUpdate events. 1369 func (eh threadMemberUpdateEventHandler) Type() string { 1370 return threadMemberUpdateEventType 1371 } 1372 1373 // New returns a new instance of ThreadMemberUpdate. 1374 func (eh threadMemberUpdateEventHandler) New() interface{} { 1375 return &ThreadMemberUpdate{} 1376 } 1377 1378 // Handle is the handler for ThreadMemberUpdate events. 1379 func (eh threadMemberUpdateEventHandler) Handle(s *Session, i interface{}) { 1380 if t, ok := i.(*ThreadMemberUpdate); ok { 1381 eh(s, t) 1382 } 1383 } 1384 1385 // threadMembersUpdateEventHandler is an event handler for ThreadMembersUpdate events. 1386 type threadMembersUpdateEventHandler func(*Session, *ThreadMembersUpdate) 1387 1388 // Type returns the event type for ThreadMembersUpdate events. 1389 func (eh threadMembersUpdateEventHandler) Type() string { 1390 return threadMembersUpdateEventType 1391 } 1392 1393 // New returns a new instance of ThreadMembersUpdate. 1394 func (eh threadMembersUpdateEventHandler) New() interface{} { 1395 return &ThreadMembersUpdate{} 1396 } 1397 1398 // Handle is the handler for ThreadMembersUpdate events. 1399 func (eh threadMembersUpdateEventHandler) Handle(s *Session, i interface{}) { 1400 if t, ok := i.(*ThreadMembersUpdate); ok { 1401 eh(s, t) 1402 } 1403 } 1404 1405 // threadUpdateEventHandler is an event handler for ThreadUpdate events. 1406 type threadUpdateEventHandler func(*Session, *ThreadUpdate) 1407 1408 // Type returns the event type for ThreadUpdate events. 1409 func (eh threadUpdateEventHandler) Type() string { 1410 return threadUpdateEventType 1411 } 1412 1413 // New returns a new instance of ThreadUpdate. 1414 func (eh threadUpdateEventHandler) New() interface{} { 1415 return &ThreadUpdate{} 1416 } 1417 1418 // Handle is the handler for ThreadUpdate events. 1419 func (eh threadUpdateEventHandler) Handle(s *Session, i interface{}) { 1420 if t, ok := i.(*ThreadUpdate); ok { 1421 eh(s, t) 1422 } 1423 } 1424 1425 // typingStartEventHandler is an event handler for TypingStart events. 1426 type typingStartEventHandler func(*Session, *TypingStart) 1427 1428 // Type returns the event type for TypingStart events. 1429 func (eh typingStartEventHandler) Type() string { 1430 return typingStartEventType 1431 } 1432 1433 // New returns a new instance of TypingStart. 1434 func (eh typingStartEventHandler) New() interface{} { 1435 return &TypingStart{} 1436 } 1437 1438 // Handle is the handler for TypingStart events. 1439 func (eh typingStartEventHandler) Handle(s *Session, i interface{}) { 1440 if t, ok := i.(*TypingStart); ok { 1441 eh(s, t) 1442 } 1443 } 1444 1445 // userUpdateEventHandler is an event handler for UserUpdate events. 1446 type userUpdateEventHandler func(*Session, *UserUpdate) 1447 1448 // Type returns the event type for UserUpdate events. 1449 func (eh userUpdateEventHandler) Type() string { 1450 return userUpdateEventType 1451 } 1452 1453 // New returns a new instance of UserUpdate. 1454 func (eh userUpdateEventHandler) New() interface{} { 1455 return &UserUpdate{} 1456 } 1457 1458 // Handle is the handler for UserUpdate events. 1459 func (eh userUpdateEventHandler) Handle(s *Session, i interface{}) { 1460 if t, ok := i.(*UserUpdate); ok { 1461 eh(s, t) 1462 } 1463 } 1464 1465 // voiceServerUpdateEventHandler is an event handler for VoiceServerUpdate events. 1466 type voiceServerUpdateEventHandler func(*Session, *VoiceServerUpdate) 1467 1468 // Type returns the event type for VoiceServerUpdate events. 1469 func (eh voiceServerUpdateEventHandler) Type() string { 1470 return voiceServerUpdateEventType 1471 } 1472 1473 // New returns a new instance of VoiceServerUpdate. 1474 func (eh voiceServerUpdateEventHandler) New() interface{} { 1475 return &VoiceServerUpdate{} 1476 } 1477 1478 // Handle is the handler for VoiceServerUpdate events. 1479 func (eh voiceServerUpdateEventHandler) Handle(s *Session, i interface{}) { 1480 if t, ok := i.(*VoiceServerUpdate); ok { 1481 eh(s, t) 1482 } 1483 } 1484 1485 // voiceStateUpdateEventHandler is an event handler for VoiceStateUpdate events. 1486 type voiceStateUpdateEventHandler func(*Session, *VoiceStateUpdate) 1487 1488 // Type returns the event type for VoiceStateUpdate events. 1489 func (eh voiceStateUpdateEventHandler) Type() string { 1490 return voiceStateUpdateEventType 1491 } 1492 1493 // New returns a new instance of VoiceStateUpdate. 1494 func (eh voiceStateUpdateEventHandler) New() interface{} { 1495 return &VoiceStateUpdate{} 1496 } 1497 1498 // Handle is the handler for VoiceStateUpdate events. 1499 func (eh voiceStateUpdateEventHandler) Handle(s *Session, i interface{}) { 1500 if t, ok := i.(*VoiceStateUpdate); ok { 1501 eh(s, t) 1502 } 1503 } 1504 1505 // webhooksUpdateEventHandler is an event handler for WebhooksUpdate events. 1506 type webhooksUpdateEventHandler func(*Session, *WebhooksUpdate) 1507 1508 // Type returns the event type for WebhooksUpdate events. 1509 func (eh webhooksUpdateEventHandler) Type() string { 1510 return webhooksUpdateEventType 1511 } 1512 1513 // New returns a new instance of WebhooksUpdate. 1514 func (eh webhooksUpdateEventHandler) New() interface{} { 1515 return &WebhooksUpdate{} 1516 } 1517 1518 // Handle is the handler for WebhooksUpdate events. 1519 func (eh webhooksUpdateEventHandler) Handle(s *Session, i interface{}) { 1520 if t, ok := i.(*WebhooksUpdate); ok { 1521 eh(s, t) 1522 } 1523 } 1524 1525 func handlerForInterface(handler interface{}) EventHandler { 1526 switch v := handler.(type) { 1527 case func(*Session, interface{}): 1528 return interfaceEventHandler(v) 1529 case func(*Session, *ApplicationCommandPermissionsUpdate): 1530 return applicationCommandPermissionsUpdateEventHandler(v) 1531 case func(*Session, *AutoModerationActionExecution): 1532 return autoModerationActionExecutionEventHandler(v) 1533 case func(*Session, *AutoModerationRuleCreate): 1534 return autoModerationRuleCreateEventHandler(v) 1535 case func(*Session, *AutoModerationRuleDelete): 1536 return autoModerationRuleDeleteEventHandler(v) 1537 case func(*Session, *AutoModerationRuleUpdate): 1538 return autoModerationRuleUpdateEventHandler(v) 1539 case func(*Session, *ChannelCreate): 1540 return channelCreateEventHandler(v) 1541 case func(*Session, *ChannelDelete): 1542 return channelDeleteEventHandler(v) 1543 case func(*Session, *ChannelPinsUpdate): 1544 return channelPinsUpdateEventHandler(v) 1545 case func(*Session, *ChannelUpdate): 1546 return channelUpdateEventHandler(v) 1547 case func(*Session, *Connect): 1548 return connectEventHandler(v) 1549 case func(*Session, *Disconnect): 1550 return disconnectEventHandler(v) 1551 case func(*Session, *EntitlementCreate): 1552 return entitlementCreateEventHandler(v) 1553 case func(*Session, *EntitlementDelete): 1554 return entitlementDeleteEventHandler(v) 1555 case func(*Session, *EntitlementUpdate): 1556 return entitlementUpdateEventHandler(v) 1557 case func(*Session, *Event): 1558 return eventEventHandler(v) 1559 case func(*Session, *GuildAuditLogEntryCreate): 1560 return guildAuditLogEntryCreateEventHandler(v) 1561 case func(*Session, *GuildBanAdd): 1562 return guildBanAddEventHandler(v) 1563 case func(*Session, *GuildBanRemove): 1564 return guildBanRemoveEventHandler(v) 1565 case func(*Session, *GuildCreate): 1566 return guildCreateEventHandler(v) 1567 case func(*Session, *GuildDelete): 1568 return guildDeleteEventHandler(v) 1569 case func(*Session, *GuildEmojisUpdate): 1570 return guildEmojisUpdateEventHandler(v) 1571 case func(*Session, *GuildIntegrationsUpdate): 1572 return guildIntegrationsUpdateEventHandler(v) 1573 case func(*Session, *GuildMemberAdd): 1574 return guildMemberAddEventHandler(v) 1575 case func(*Session, *GuildMemberRemove): 1576 return guildMemberRemoveEventHandler(v) 1577 case func(*Session, *GuildMemberUpdate): 1578 return guildMemberUpdateEventHandler(v) 1579 case func(*Session, *GuildMembersChunk): 1580 return guildMembersChunkEventHandler(v) 1581 case func(*Session, *GuildRoleCreate): 1582 return guildRoleCreateEventHandler(v) 1583 case func(*Session, *GuildRoleDelete): 1584 return guildRoleDeleteEventHandler(v) 1585 case func(*Session, *GuildRoleUpdate): 1586 return guildRoleUpdateEventHandler(v) 1587 case func(*Session, *GuildScheduledEventCreate): 1588 return guildScheduledEventCreateEventHandler(v) 1589 case func(*Session, *GuildScheduledEventDelete): 1590 return guildScheduledEventDeleteEventHandler(v) 1591 case func(*Session, *GuildScheduledEventUpdate): 1592 return guildScheduledEventUpdateEventHandler(v) 1593 case func(*Session, *GuildScheduledEventUserAdd): 1594 return guildScheduledEventUserAddEventHandler(v) 1595 case func(*Session, *GuildScheduledEventUserRemove): 1596 return guildScheduledEventUserRemoveEventHandler(v) 1597 case func(*Session, *GuildStickersUpdate): 1598 return guildStickersUpdateEventHandler(v) 1599 case func(*Session, *GuildUpdate): 1600 return guildUpdateEventHandler(v) 1601 case func(*Session, *IntegrationCreate): 1602 return integrationCreateEventHandler(v) 1603 case func(*Session, *IntegrationDelete): 1604 return integrationDeleteEventHandler(v) 1605 case func(*Session, *IntegrationUpdate): 1606 return integrationUpdateEventHandler(v) 1607 case func(*Session, *InteractionCreate): 1608 return interactionCreateEventHandler(v) 1609 case func(*Session, *InviteCreate): 1610 return inviteCreateEventHandler(v) 1611 case func(*Session, *InviteDelete): 1612 return inviteDeleteEventHandler(v) 1613 case func(*Session, *MessageCreate): 1614 return messageCreateEventHandler(v) 1615 case func(*Session, *MessageDelete): 1616 return messageDeleteEventHandler(v) 1617 case func(*Session, *MessageDeleteBulk): 1618 return messageDeleteBulkEventHandler(v) 1619 case func(*Session, *MessagePollVoteAdd): 1620 return messagePollVoteAddEventHandler(v) 1621 case func(*Session, *MessagePollVoteRemove): 1622 return messagePollVoteRemoveEventHandler(v) 1623 case func(*Session, *MessageReactionAdd): 1624 return messageReactionAddEventHandler(v) 1625 case func(*Session, *MessageReactionRemove): 1626 return messageReactionRemoveEventHandler(v) 1627 case func(*Session, *MessageReactionRemoveAll): 1628 return messageReactionRemoveAllEventHandler(v) 1629 case func(*Session, *MessageUpdate): 1630 return messageUpdateEventHandler(v) 1631 case func(*Session, *PresenceUpdate): 1632 return presenceUpdateEventHandler(v) 1633 case func(*Session, *PresencesReplace): 1634 return presencesReplaceEventHandler(v) 1635 case func(*Session, *RateLimit): 1636 return rateLimitEventHandler(v) 1637 case func(*Session, *Ready): 1638 return readyEventHandler(v) 1639 case func(*Session, *Resumed): 1640 return resumedEventHandler(v) 1641 case func(*Session, *StageInstanceEventCreate): 1642 return stageInstanceEventCreateEventHandler(v) 1643 case func(*Session, *StageInstanceEventDelete): 1644 return stageInstanceEventDeleteEventHandler(v) 1645 case func(*Session, *StageInstanceEventUpdate): 1646 return stageInstanceEventUpdateEventHandler(v) 1647 case func(*Session, *SubscriptionCreate): 1648 return subscriptionCreateEventHandler(v) 1649 case func(*Session, *SubscriptionDelete): 1650 return subscriptionDeleteEventHandler(v) 1651 case func(*Session, *SubscriptionUpdate): 1652 return subscriptionUpdateEventHandler(v) 1653 case func(*Session, *ThreadCreate): 1654 return threadCreateEventHandler(v) 1655 case func(*Session, *ThreadDelete): 1656 return threadDeleteEventHandler(v) 1657 case func(*Session, *ThreadListSync): 1658 return threadListSyncEventHandler(v) 1659 case func(*Session, *ThreadMemberUpdate): 1660 return threadMemberUpdateEventHandler(v) 1661 case func(*Session, *ThreadMembersUpdate): 1662 return threadMembersUpdateEventHandler(v) 1663 case func(*Session, *ThreadUpdate): 1664 return threadUpdateEventHandler(v) 1665 case func(*Session, *TypingStart): 1666 return typingStartEventHandler(v) 1667 case func(*Session, *UserUpdate): 1668 return userUpdateEventHandler(v) 1669 case func(*Session, *VoiceServerUpdate): 1670 return voiceServerUpdateEventHandler(v) 1671 case func(*Session, *VoiceStateUpdate): 1672 return voiceStateUpdateEventHandler(v) 1673 case func(*Session, *WebhooksUpdate): 1674 return webhooksUpdateEventHandler(v) 1675 } 1676 1677 return nil 1678 } 1679 1680 func init() { 1681 registerInterfaceProvider(applicationCommandPermissionsUpdateEventHandler(nil)) 1682 registerInterfaceProvider(autoModerationActionExecutionEventHandler(nil)) 1683 registerInterfaceProvider(autoModerationRuleCreateEventHandler(nil)) 1684 registerInterfaceProvider(autoModerationRuleDeleteEventHandler(nil)) 1685 registerInterfaceProvider(autoModerationRuleUpdateEventHandler(nil)) 1686 registerInterfaceProvider(channelCreateEventHandler(nil)) 1687 registerInterfaceProvider(channelDeleteEventHandler(nil)) 1688 registerInterfaceProvider(channelPinsUpdateEventHandler(nil)) 1689 registerInterfaceProvider(channelUpdateEventHandler(nil)) 1690 registerInterfaceProvider(entitlementCreateEventHandler(nil)) 1691 registerInterfaceProvider(entitlementDeleteEventHandler(nil)) 1692 registerInterfaceProvider(entitlementUpdateEventHandler(nil)) 1693 registerInterfaceProvider(guildAuditLogEntryCreateEventHandler(nil)) 1694 registerInterfaceProvider(guildBanAddEventHandler(nil)) 1695 registerInterfaceProvider(guildBanRemoveEventHandler(nil)) 1696 registerInterfaceProvider(guildCreateEventHandler(nil)) 1697 registerInterfaceProvider(guildDeleteEventHandler(nil)) 1698 registerInterfaceProvider(guildEmojisUpdateEventHandler(nil)) 1699 registerInterfaceProvider(guildIntegrationsUpdateEventHandler(nil)) 1700 registerInterfaceProvider(guildMemberAddEventHandler(nil)) 1701 registerInterfaceProvider(guildMemberRemoveEventHandler(nil)) 1702 registerInterfaceProvider(guildMemberUpdateEventHandler(nil)) 1703 registerInterfaceProvider(guildMembersChunkEventHandler(nil)) 1704 registerInterfaceProvider(guildRoleCreateEventHandler(nil)) 1705 registerInterfaceProvider(guildRoleDeleteEventHandler(nil)) 1706 registerInterfaceProvider(guildRoleUpdateEventHandler(nil)) 1707 registerInterfaceProvider(guildScheduledEventCreateEventHandler(nil)) 1708 registerInterfaceProvider(guildScheduledEventDeleteEventHandler(nil)) 1709 registerInterfaceProvider(guildScheduledEventUpdateEventHandler(nil)) 1710 registerInterfaceProvider(guildScheduledEventUserAddEventHandler(nil)) 1711 registerInterfaceProvider(guildScheduledEventUserRemoveEventHandler(nil)) 1712 registerInterfaceProvider(guildStickersUpdateEventHandler(nil)) 1713 registerInterfaceProvider(guildUpdateEventHandler(nil)) 1714 registerInterfaceProvider(integrationCreateEventHandler(nil)) 1715 registerInterfaceProvider(integrationDeleteEventHandler(nil)) 1716 registerInterfaceProvider(integrationUpdateEventHandler(nil)) 1717 registerInterfaceProvider(interactionCreateEventHandler(nil)) 1718 registerInterfaceProvider(inviteCreateEventHandler(nil)) 1719 registerInterfaceProvider(inviteDeleteEventHandler(nil)) 1720 registerInterfaceProvider(messageCreateEventHandler(nil)) 1721 registerInterfaceProvider(messageDeleteEventHandler(nil)) 1722 registerInterfaceProvider(messageDeleteBulkEventHandler(nil)) 1723 registerInterfaceProvider(messagePollVoteAddEventHandler(nil)) 1724 registerInterfaceProvider(messagePollVoteRemoveEventHandler(nil)) 1725 registerInterfaceProvider(messageReactionAddEventHandler(nil)) 1726 registerInterfaceProvider(messageReactionRemoveEventHandler(nil)) 1727 registerInterfaceProvider(messageReactionRemoveAllEventHandler(nil)) 1728 registerInterfaceProvider(messageUpdateEventHandler(nil)) 1729 registerInterfaceProvider(presenceUpdateEventHandler(nil)) 1730 registerInterfaceProvider(presencesReplaceEventHandler(nil)) 1731 registerInterfaceProvider(readyEventHandler(nil)) 1732 registerInterfaceProvider(resumedEventHandler(nil)) 1733 registerInterfaceProvider(stageInstanceEventCreateEventHandler(nil)) 1734 registerInterfaceProvider(stageInstanceEventDeleteEventHandler(nil)) 1735 registerInterfaceProvider(stageInstanceEventUpdateEventHandler(nil)) 1736 registerInterfaceProvider(subscriptionCreateEventHandler(nil)) 1737 registerInterfaceProvider(subscriptionDeleteEventHandler(nil)) 1738 registerInterfaceProvider(subscriptionUpdateEventHandler(nil)) 1739 registerInterfaceProvider(threadCreateEventHandler(nil)) 1740 registerInterfaceProvider(threadDeleteEventHandler(nil)) 1741 registerInterfaceProvider(threadListSyncEventHandler(nil)) 1742 registerInterfaceProvider(threadMemberUpdateEventHandler(nil)) 1743 registerInterfaceProvider(threadMembersUpdateEventHandler(nil)) 1744 registerInterfaceProvider(threadUpdateEventHandler(nil)) 1745 registerInterfaceProvider(typingStartEventHandler(nil)) 1746 registerInterfaceProvider(userUpdateEventHandler(nil)) 1747 registerInterfaceProvider(voiceServerUpdateEventHandler(nil)) 1748 registerInterfaceProvider(voiceStateUpdateEventHandler(nil)) 1749 registerInterfaceProvider(webhooksUpdateEventHandler(nil)) 1750 }