This repository was archived by the owner on Feb 18, 2023. It is now read-only.
Commit 12838c2
authored
Changes to Slash Command Response Types (#11)
* Update discord/interactions
Changes to Slash Command Response Types and Flags
March 5, 2021
Changes to interaction response types have been made to support better designs for Slash Commands:
Type 2 Acknowledge has been deprecated
Type 3 ChannelMessage has been deprecated
Type 5 AcknowledgeWithSource has been renamed to DeferredChannelMessageWithSource
These deprecated types will be removed and break on April 9, 2021.
Additionally, flags has been documented on InteractionApplicationCommandCallbackData. Setting flags to 64 will make the interaction response ephemeral.
* Deprecate Acknowledge
* AcknowledgeWithSource -> DeferredChannelMessageWithSource
Type 5 AcknowledgeWithSource has been renamed to DeferredChannelMessageWithSource
* Deprecate ChannelMessage
* Update composer.json
* Keep original naming convention for functions
* Backwards compatibility
* Whoops1 parent c149499 commit 12838c2
2 files changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
| 108 | + | |
108 | 109 | | |
109 | | - | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
| 113 | + | |
113 | 114 | | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
125 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
126 | 130 | | |
127 | | - | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
137 | | - | |
| 141 | + | |
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
| |||
0 commit comments