events.go 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package discordgo
  2. // Connect is an empty struct for an event.
  3. type Connect struct{}
  4. // Disconnect is an empty struct for an event.
  5. type Disconnect struct{}
  6. // MessageCreate is a wrapper struct for an event.
  7. type MessageCreate struct {
  8. *Message
  9. }
  10. // MessageUpdate is a wrapper struct for an event.
  11. type MessageUpdate struct {
  12. *Message
  13. }
  14. // MessageDelete is a wrapper struct for an event.
  15. type MessageDelete struct {
  16. *Message
  17. }
  18. // ChannelCreate is a wrapper struct for an event.
  19. type ChannelCreate struct {
  20. *Channel
  21. }
  22. // ChannelUpdate is a wrapper struct for an event.
  23. type ChannelUpdate struct {
  24. *Channel
  25. }
  26. // ChannelDelete is a wrapper struct for an event.
  27. type ChannelDelete struct {
  28. *Channel
  29. }
  30. // GuildCreate is a wrapper struct for an event.
  31. type GuildCreate struct {
  32. *Guild
  33. }
  34. // GuildUpdate is a wrapper struct for an event.
  35. type GuildUpdate struct {
  36. *Guild
  37. }
  38. // GuildDelete is a wrapper struct for an event.
  39. type GuildDelete struct {
  40. *Guild
  41. }
  42. // GuildBanAdd is a wrapper struct for an event.
  43. type GuildBanAdd struct {
  44. *GuildBan
  45. }
  46. // GuildBanRemove is a wrapper struct for an event.
  47. type GuildBanRemove struct {
  48. *GuildBan
  49. }
  50. // GuildMemberAdd is a wrapper struct for an event.
  51. type GuildMemberAdd struct {
  52. *Member
  53. }
  54. // GuildMemberUpdate is a wrapper struct for an event.
  55. type GuildMemberUpdate struct {
  56. *Member
  57. }
  58. // GuildMemberRemove is a wrapper struct for an event.
  59. type GuildMemberRemove struct {
  60. *Member
  61. }
  62. // GuildRoleCreate is a wrapper struct for an event.
  63. type GuildRoleCreate struct {
  64. *GuildRole
  65. }
  66. // GuildRoleUpdate is a wrapper struct for an event.
  67. type GuildRoleUpdate struct {
  68. *GuildRole
  69. }
  70. // VoiceStateUpdate is a wrapper struct for an event.
  71. type VoiceStateUpdate struct {
  72. *VoiceState
  73. }
  74. // UserUpdate is a wrapper struct for an event.
  75. type UserUpdate struct {
  76. *UserUpdate
  77. }
  78. // UserSettingsUpdate is a map for an event.
  79. type UserSettingsUpdate map[string]interface{}