@@ -155,16 +155,16 @@ async def callback(self, interaction: Interaction) -> None:
155155 self .view .stop ()
156156
157157
158- MULTI_LOOP = "\U0001f501 "
159- SINGLE_LOOP = "\U0001f502 "
158+ MULTI_LOOP = "<:loopall:1044708055234904094> "
159+ SINGLE_LOOP = "<:loop:1044708068639903907> "
160160
161161
162162class PlayButton (TimeoutView ):
163163 def __init__ (
164164 self ,
165165 track : Track | Playlist | None ,
166166 * ,
167- loop : bool ,
167+ loop : bool = False ,
168168 ):
169169 super ().__init__ (timeout = 300 )
170170
@@ -200,9 +200,7 @@ async def interaction_check(self, inter: Interaction) -> bool:
200200
201201 return True
202202
203- @button (
204- emoji = "\U000023ef \U0000fe0f " , style = ButtonStyle .blurple , custom_id = "view:pp"
205- )
203+ @button (emoji = "<:playpause:1044619888146255975>" , style = ButtonStyle .blurple )
206204 async def playpause (self , _ : Button , inter : Interaction ):
207205 assert inter .guild is not None
208206 inter = MyInter (inter , inter .client ) # type: ignore
@@ -214,7 +212,7 @@ async def playpause(self, _: Button, inter: Interaction):
214212 await inter .guild .voice_client .set_pause (False )
215213 await inter .send_author_embed ("Resumed" )
216214
217- @button (emoji = "\U000023ed " , style = ButtonStyle .blurple , custom_id = "view:next" )
215+ @button (emoji = "<:skip:1044620351390363739> " , style = ButtonStyle .blurple )
218216 async def skip (self , _ : Button , inter : Interaction ):
219217 inter = MyInter (inter , inter .client ) # type: ignore
220218 assert inter .guild is not None
@@ -234,8 +232,8 @@ async def skip(self, _: Button, inter: Interaction):
234232 await player .play (toplay )
235233 await playing_embed (toplay , skipped_by = inter .user .mention )
236234
237- @button (emoji = "\U000023f9 " , style = ButtonStyle .blurple , custom_id = "view:stop" )
238- async def stop (self , _ : Button , inter : Interaction ):
235+ @button (emoji = "<:stop:1044661767504134164> " , style = ButtonStyle .blurple )
236+ async def stop_ (self , _ : Button , inter : Interaction ):
239237 assert inter .guild is not None
240238 inter = MyInter (inter , inter .client ) # type: ignore
241239
@@ -249,9 +247,7 @@ async def stop(self, _: Button, inter: Interaction):
249247 await player .stop ()
250248 await inter .send_author_embed ("Stopped" )
251249
252- @button (
253- emoji = "\U0001f500 " , style = ButtonStyle .blurple , custom_id = "view:shuffle" , row = 1
254- )
250+ @button (emoji = "<:shuffle:1044699214803894293>" , style = ButtonStyle .blurple , row = 1 )
255251 async def shuffle (self , _ : Button , inter : Interaction ):
256252 assert inter .guild is not None
257253 inter = MyInter (inter , inter .client ) # type: ignore
@@ -262,9 +258,7 @@ async def shuffle(self, _: Button, inter: Interaction):
262258 shuffle (inter .guild .voice_client .queue )
263259 await inter .send_author_embed ("Shuffled the queue" )
264260
265- @button (
266- emoji = "\U0001f523 " , style = ButtonStyle .blurple , custom_id = "view:queue" , row = 1
267- )
261+ @button (emoji = "<:queue:1044702819992748138>" , style = ButtonStyle .blurple , row = 1 )
268262 async def queue (self , _ : Button , inter : Interaction ):
269263 assert inter .guild is not None
270264 inter = MyInter (inter , inter .client ) # type: ignore
@@ -313,7 +307,7 @@ async def loop(self, button: Button, inter: Interaction):
313307 # Update with the new styling.
314308 await inter .edit (view = self )
315309
316- @button (emoji = "\U0001f90d " , style = ButtonStyle .blurple , custom_id = "view:like" )
310+ @button (emoji = "<:vibrheart:1044662164587290664> " , style = ButtonStyle .blurple )
317311 async def like (self , _ : Button , inter : Interaction ):
318312 assert inter .guild is not None
319313 inter = MyInter (inter , inter .client ) # type: ignore
@@ -754,9 +748,10 @@ async def callback(self, interaction: Interaction) -> None:
754748 assert self .view is not None
755749 self .view .selected_track = self .view .tracks [int (self .values [0 ])]
756750
751+ self .inter = interaction
752+
757753 self .disabled = True
758754 await interaction .edit (view = self .view )
759- self .inter = interaction
760755
761756 self .view .stop ()
762757
0 commit comments